#!/usr/bin/env bash

# description: Juniper Network Contrail Ironic Notification Manager

if [ -e /tmp/supervisord_config.sock ]; then
    supervisorctl -s unix:///tmp/supervisord_config.sock ${1} `basename ${0}`
else
    supervisorctl -s unix:///var/run/supervisord_config.sock ${1} `basename ${0}`
fi
